package com.hlframe.modules.bizdemo;

import com.google.common.base.Predicate;

import com.hlframe.modules.common.web.PropertyController;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


//加载apollo环境中的配置信息 测试&生产环境放开, 本地开发时注释掉
//@EnableApolloConfig({"application","hlBizDemo"})
//扫描common和当前项目 中的注解文件(controller,service,Component等)  如果要扫描mapper.xml则配置@MapperScan(basePackages="...")
@ComponentScan(basePackages={"com.hlframe.modules.common","com.hlframe.modules.bizdemo"})
//开启注解事务管理 新增/修改/删除等service方法中 添加@Transactional注解
@EnableTransactionManagement
//注册当前服务到服务注册中心 (测试环境Eureka: http://10.1.20.29:8080/)
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan({"com.hlframe.modules.common.dao", "com.hlframe.modules.bizdemo.dao"})
public class HlBizdemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(HlBizdemoApplication.class, args);
	}

}
